package com.wiz.web.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wiz.web.vo.criteria.FpCriteria;
import com.wiz.web.vo.criteria.OilTankCriteria;
import com.wiz.web.vo.to.FpTO;
import com.wiz.web.vo.to.StationLoginTO;
import com.wiz.web.vo.to.StationTO;

public interface OilTankMapper {

	/**
	 * 获取站点登录注册相关信息
	 * @param stationId
	 * @return
	 */
	StationLoginTO getStationMac(@Param(value="stationId")String stationId);
	
	/**
	 * 激活某站点
	 * @param stationId
	 * @param stationMac
	 * @return
	 */
	int activateOilTank(OilTankCriteria criteria);
	
	/**
	 * 是否已有配置
	 * @param criteria
	 * @return
	 */
	int getCntOilTankConfig(OilTankCriteria criteria);
	
	/**
	 * 添加配置
	 * @param criteria
	 * @return
	 */
	int insertOilTankConfig(OilTankCriteria criteria);
	
	/**
	 * 更新油罐配置
	 * @param criteria
	 * @return
	 */
	int updateOilTankConfig(OilTankCriteria criteria);
	
	/**
	 * 同步油罐
	 * @param criteria
	 * @return
	 */
	int insertOilTankMonitor(OilTankCriteria criteria);
	
	/**
	 * 根据油品获取该油站的对应油枪
	 * @param criteria
	 * @return
	 */
	List<FpTO> getFPByStationPR(FpCriteria criteria);
	
	StationTO getStationsByStationId(@Param(value="stationId")String stationId);
}
